<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="sp" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="s" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>网站首页</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/layui/css/layui.css"
	media="all">
<style type="text/css">
td img {
	display: block;
}

td img {
	display: block;
}

td img {
	display: block;
}

td img {
	display: block;
}

td img {
	display: block;
}

td img {
	display: block;
}

.STYLE4 {
	font-size: 14px
}

td img {
	display: block;
}
</style>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/layui/layui.js"
	charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
		$("#name").focus(function() {
			$("#span1").text("");
		});
		$("#password").focus(function() {
			$("#span1").text("");
		});
	});
</script>
<script type="text/javascript">
	function del() {
		if (confirm("是否确定删除？")) {
			return true;
		}
		return false;
	}
</script>
</head>
<body>
	<table width="788" border="0" align="center">
		<tr>
			<td height="158" colspan="2" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="780">
					<tr>
						<td colspan="11"><img name="indexLOGO_r1_c1"
							src="imags/indexLOGO_r1_c1.jpg" width="780" height="178"
							border="0" id="indexLOGO_r1_c1" alt="" /></td>
						<td><img src="imags/spacer.gif" width="1" height="178"
							border="0" alt="" /></td>
					</tr>
					<tr>
						<td rowspan="2"><img name="indexLOGO_r2_c1"
							src="imags/indexLOGO_r2_c1.jpg" width="198" height="22"
							border="0" id="indexLOGO_r2_c1" alt="" /></td>
						<td><a href="index.jsp" target="_top"> <img name="indexLOGO_r2_c2"
								src="imags/indexLOGO_r2_c2.jpg" width="69" height="17"
								border="0" id="indexLOGO_r2_c2" alt="" />
						</a></td>
						<td rowspan="2"><img name="indexLOGO_r2_c3"
							src="imags/indexLOGO_r2_c3.jpg" width="44" height="22" border="0"
							id="indexLOGO_r2_c3" alt="" /></td>
						<td><a href="ticketLook" target="_top"> <img name="indexLOGO_r2_c4"
								src="imags/indexLOGO_r2_c4.jpg" width="70" height="17"
								border="0" id="indexLOGO_r2_c4" alt="" />
						</a></td>
						<td rowspan="2"><img name="indexLOGO_r2_c5"
							src="imags/indexLOGO_r2_c5.jpg" width="57" height="22" border="0"
							id="indexLOGO_r2_c5" alt="" /></td>

						<td><a href="bookTicket" target="_top"><img name="indexLOGO_r2_c6"
								src="imags/indexLOGO_r2_c6.jpg" width="72" height="17"
								border="0" id="indexLOGO_r2_c6" alt="" /></a></td>

						<td rowspan="2"><img name="indexLOGO_r2_c7"
							src="imags/indexLOGO_r2_c7.jpg" width="55" height="22" border="0"
							id="indexLOGO_r2_c7" alt="" /></td>

						<td><a href="tuiPiao" target="_top"><img name="indexLOGO_r2_c8"
								src="imags/indexLOGO_r2_c8.jpg" width="72" height="17"
								border="0" id="indexLOGO_r2_c8" alt="" /></a></td>

						<td rowspan="2"><img name="indexLOGO_r2_c9"
							src="imags/indexLOGO_r2_c9.jpg" width="48" height="22" border="0"
							id="indexLOGO_r2_c9" alt="" /></td>

						<td><a href="leaveMessage" target="_top"> <img name="indexLOGO_r2_c10"
								src="imags/indexLOGO_r2_c10.jpg" width="70" height="17"
								border="0" id="indexLOGO_r2_c10" alt="" /></a></td>
						<td rowspan="2"><img name="indexLOGO_r2_c11"
							src="imags/indexLOGO_r2_c11.jpg" width="25" height="22"
							border="0" id="indexLOGO_r2_c11" alt="" /></td>
						<td><img src="imags/spacer.gif" width="1" height="17"
							border="0" alt="" /></td>
					</tr>
					<tr>
						<td><img name="indexLOGO_r3_c2"
							src="imags/indexLOGO_r3_c2.jpg" width="69" height="5" border="0"
							id="indexLOGO_r3_c2" alt="" /></td>
						<td><img name="indexLOGO_r3_c4"
							src="imags/indexLOGO_r3_c4.jpg" width="70" height="5" border="0"
							id="indexLOGO_r3_c4" alt="" /></td>
						<td><img name="indexLOGO_r3_c6"
							src="imags/indexLOGO_r3_c6.jpg" width="72" height="5" border="0"
							id="indexLOGO_r3_c6" alt="" /></td>
						<td><img name="indexLOGO_r3_c8"
							src="imags/indexLOGO_r3_c8.jpg" width="72" height="5" border="0"
							id="indexLOGO_r3_c8" alt="" /></td>
						<td><img name="indexLOGO_r3_c10"
							src="imags/indexLOGO_r3_c10.jpg" width="70" height="5" border="0"
							id="indexLOGO_r3_c10" alt="" /></td>
						<td><img src="imags/spacer.gif" width="1" height="5"
							border="0" alt="" /></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="218" height="0" valign="top" bgcolor="#EDEDED">
				<table width="0" height="559" border="0">
					<tr height="210" align="center" valign="top">
						<td width="218" height="210" align="center" valign="top">
							<form name="form1" method="post"
								action="${pageContext.request.contextPath }/dengLu">
								<table width="100%" height="201" border="0">
									<tr>
										<td align="center" valign="top" bgcolor="#CD0102"><img
											name="userLogin" src="imags/userLogin.jpg" width="218"
											height="43" border="0" id="userLogin" alt="" /></td>
									</tr>
									<s:if test="${sessionScope.name == null}">
										<tr>
											<td align="center" height="50"><input type="text"
												name="name" id="name" lay-verify="required"
												placeholder="请输入用户名" autocomplete="off" class="layui-input" />
											</td>
										</tr>
										<tr>
											<td align="center"><input type="password"
												name="password" id="password" lay-verify="required"
												placeholder="请输入密码" class="layui-input" /> <span id="span1"
												style="width: 218px; height: 21px; color: #EE0000; font-size: 12px">${requestScope.message}</span>
											</td>
										</tr>
										<tr>
											<td height="30" align="center" valign="middle"><input
												type="radio" name="identity" value="normal" />普通用户&nbsp; <input
												type="radio" name="identity" value="manager" />管理员</td>
										</tr>
										<tr>
											<td height="20" valign="top">
												<table width="198" border="0">
													<tr>
														<td width="100" height="38" align="center">
															<button type="button" name="clear" id="clear"
																class="layui-btn layui-btn-primary layui-btn-radius"
																style="height: 40px" onClick="return reset()">重置</button>
														</td>
														<td width="88" align="center">
															<button name="submit" id="submit"
																class="layui-btn layui-btn-primary layui-btn-radius"
																style="height: 40px" onClick="return passMessage();">登录</button>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</s:if>
									<s:if test="${sessionScope.name != null}">
										<tr>
											<td height="50" align="left"><span>欢迎回来，${sessionScope.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;
												<a href="${pageContext.request.contextPath }/loginOut">[退出]</a>
											</td>
										</tr>
										<tr>
											<td align="center" height="50"></td>
										</tr>
										<tr>
											<td height="30" align="center" valign="middle"></td>
										</tr>
										<tr>
											<td height="20" valign="top"></td>
										</tr>
										<tr>
											<td></td>
										</tr>
									</s:if>
								</table>
							</form>
						</td>
					</tr>
					<tr height="210" align="center" valign="top">
						<td width="218" height="210" align="center" valign="top">
							<table width="100%" height="201" border="0">
								<tr>
									<td align="center" bgcolor="#CD0102" width="228px"><img
										name="serviceALL_r1_c1" src="imags/serviceALL_r1_c1.jpg"
										width="218" height="43" border="0" id="serviceALL_r1_c1"
										alt="" /></td>
								</tr>
								<tr>
									<td align="center"><a href="zhuche" target="_top">
											<button style="width: 220px"
												class="layui-btn layui-btn-primary">会员注册</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="userManage" target="_top">
											<button style="width: 220px"
												class="layui-btn layui-btn-primary">用户管理</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="ticketLook" target="_top"><button
												style="width: 220px" class="layui-btn layui-btn-primary">车票信息</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="bookTicket" target="_top"><button
												style="width: 220px" class="layui-btn layui-btn-primary">在线售票</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="listTicketSaled.action"
										target="_top"><button style="width: 220px"
												class="layui-btn layui-btn-primary">查询售票情况</button> </a></td>
								</tr>
								<tr>
									<td align="center"><a href="tuiPiao" target="_top"><button
												style="width: 220px" class="layui-btn layui-btn-primary">退票管理</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="leaveMessage" target="_top"><button
												style="width: 220px" class="layui-btn layui-btn-primary">发表留言</button>
									</a></td>
								</tr>
								<tr>
									<td align="center"><a href="lookMessage.action"
										target="_top"><button style="width: 220px"
												class="layui-btn layui-btn-primary">查看留言信息</button> </a></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td width="565" valign="top"><table width="554" height="421"
					border="0">
					<tr>
						<td width="27" height="91">&nbsp;</td>
						<td width="186" valign="bottom"><span class="STYLE5">----用户列表信息-----</span></td>
						<td width="327" valign="bottom">
							<form name="form2" method="post" action="listClientInfo.action">
								<input type="submit" value="点击查询"
									style="width: 90px; height: 21px; font-size: 13px"">
							</form>
						</td>
					</tr>
					<tr>
						<td height="30" colspan="3" valign="top"><hr color="#FF0000"></td>
					</tr>
					<tr>
						<td height="292" colspan="3" valign="top"><table border="0"
								width="98%" align="center" cellpadding="0" cellspacing="1"
								bgcolor="#dfdfdf">

								<tr>
									<td width="15%" height="31" bgcolor="#CC6600"><span
										class="STYLE9"></span>用户名</td>

									<td width="28%" bgcolor="#CC6600"><span class="STYLE9">联系方式</span>
									</td>

									<td width="37%" bgcolor="#CC6600">身份证号</td>
									<td width="20%" bgcolor="#CC6600">删除该用户</td>
								</tr>

								<s:iterator value="#request.list" id="us">
									<tr>
										<td height="53" valign="top"><s:property value="#us.name" />
										</td>

										<td valign="top"><s:property value="#us.touchWay" /></td>

										<td valign="top"><s:property value="#us.statusCard" /></td>

										<td valign="top"><s:a
												href="deleteClient.action?client.id=%{#us.id}"
												onclick="return del();">delete</s:a></td>
									</tr>
								</s:iterator>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="41" colspan="2" align="center" valign="top"><hr
					size="2" color="#CC6666">
				<p align="center">
					<span class="STYLE4">华育国际J27班第四小组版权所有 Copyright © 2017-2020.
						All Rights Reserved.</span>
				</p></td>
		</tr>
		<tr>
			<td height="23" colspan="2" valign="top"><hr size="15"
					color="#FF3333"></td>
		</tr>
	</table>
	<br>
</body>
</html>
